package com.yeqian.article.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 评论实体
 */
@Data
@TableName("comment")
public class Comment {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    @TableField("commentContent")
    private String commentContent;

    @TableField("isTop")
    private String isTop;

    @TableField("articleId")
    private String articleId;

    @TableField("parentId")
    private String parentId;

    /**
     * 类型 0：评论，1：回复
     */
    @TableField("commentType")
    private Long commentType;

    @TableField("createUser")
    private String replyId;

    @TableField("createUser")
    private String createUser;

    @TableField("createTime")
    private LocalDateTime createtime;

    @TableField("updateUser")
    private String updateUser;

    @TableField("updateTime")
    private LocalDateTime updatetime;

    @TableField("deleteUser")
    private String deleteUser;

    @TableField("deleteTime")
    private LocalDateTime deletetime;

    @TableField("deleteFlag")
    private String deleteflag;

    @TableField("porder")
    private Integer porder;

}
